using System.Collections;
using System.Collections.Generic;
using Base;
using OctoberStudio.Easing;
using UnityEngine;

public class Map : MonoBehaviour
{
    // 当另一个物体进入触发区域时调用
    void OnTriggerEnter2D(Collider2D other)
    {
        Debug.Log("物体进入触发器区域：" + other.name);
        EventCenterManager.Instance.Dispatch(EventCommand.MapMove,transform);

    }

    // 当另一个物体离开触发区域时调用
    void OnTriggerExit2D(Collider2D other)
    {
        Debug.Log("物体离开触发器区域：" + other.name);
    }
}
